how to calculate power of a number in c programming